package org.niugang.security;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;


/**
 * 服务启动类
 *
 * @author niugang
 */
@SpringBootApplication
@MapperScan(value = {"org.niugang.security.users.mapper"})
@EnableGlobalMethodSecurity(prePostEnabled=true)
@Slf4j
public class SecurityforspringbootApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(SecurityforspringbootApplication.class, args);
    }


    @Override
    public void run(String... args) throws Exception {
         log.info("--------->Application start success<---------");
    }
}
